//
//  MyBar.m
//  代号：47
//
//  Created by 杨佩璋 on 15/7/14.
//  Copyright (c) 2015年 杨佩璋. All rights reserved.
//

#import "MyBar.h"


@interface MyBar ()
@property (nonatomic,retain) UIButton *myButton;

@end

@implementation MyBar
-(instancetype)initWithFrame:(CGRect)frame{
    if ( self = [super initWithFrame:frame]) {
        UIButton *centerButton = [UIButton buttonWithType:UIButtonTypeCustom];
        centerButton.size = CGSizeMake(60, 60);
        [centerButton setImage:[UIImage imageNamed:@"iconfont-dianying(4)"] forState:UIControlStateNormal];
        [self addSubview:centerButton];
        self.myButton = centerButton;
    }
    return self;
}


-(void)layoutSubviews{
    self.myButton.centerX = self.width *0.5;
    self.myButton.y = - 16;
}

@end
